<template>
	<a-breadcrumb class="container-breadcrumb" v-show='items && items.length>0'>
		<a-breadcrumb-item>
			<icon-apps />
		</a-breadcrumb-item>
		<a-breadcrumb-item v-for="item in items" :key="item">
			{{ item.meta.locale }}
		</a-breadcrumb-item>
	</a-breadcrumb>
</template>

<script lang="ts" setup>
	import { useRoute } from 'vue-router';
	const route = useRoute();
	const items = route.matched || []
</script>

<style scoped lang="less">
	.container-breadcrumb {
		margin: 0 0 16px 0;
		 :deep(.arco-breadcrumb-item) {
			color: rgb(var(--gray-6));
			&:last-child {
				color: rgb(var(--gray-8));
			}
		}
	}
</style>